#include "bsp_wdt.h"
#include "public_macro.h"


aon_wdt_handle_t wdt_handle;

void wdt_init(uint32_t s)
{
    wdt_handle.init.counter = 32768 * s - 1;
    wdt_handle.init.alarm_counter = 0x1F;

    hal_aon_wdt_init((aon_wdt_handle_t *)&wdt_handle);    
}

void wdt_free(void)
{
    hal_aon_wdt_refresh((aon_wdt_handle_t *)&wdt_handle);
}



